home *** CD-ROM | disk | FTP | other *** search
- property pSpr, pLastLoc
- global gReminderToolTipTimer, gLastForcedRollover
-
- on beginSprite me
- pSpr = sprite(me.spriteNum)
- pSpr.locH = 1000
- pSpr.locZ = 125
- customFont(pSpr.member)
- end
-
- on mShowToolTip me, rollSprite, tipText, tipLoc, overRide, forceRelocation
- if ticksSince(gReminderToolTipTimer) < 0 then
- if not overRide then
- if voidp(gLastForcedRollover) then
- exit
- else
- if rollSprite <> gLastForcedRollover then
- exit
- end if
- end if
- end if
- end if
- if pSpr.member.text <> tipText then
- if tipLoc <> pSpr.loc then
- pSpr.locH = 1000
- updateStage()
- end if
- pSpr.member.text = tipText
- pSpr.loc = tipLoc
- pLastLoc = tipLoc
- else
- if forceRelocation and (pSpr.loc <> tipLoc) then
- pSpr.loc = tipLoc
- pLastLoc = tipLoc
- else
- pSpr.loc = pLastLoc
- end if
- end if
- end
-
- on mHideToolTip me, overRide
- if overRide then
- pSpr.locH = 1000
- else
- if ticksSince(gReminderToolTipTimer) < 0 then
- if voidp(gLastForcedRollover) then
- exit
- else
- if the rollOver <> gLastForcedRollover.spriteNum then
- exit
- end if
- end if
- end if
- end if
- pSpr.locH = 1000
- end
-
- on endSprite me
- pSpr.locH = 1000
- pSpr.locZ = me.spriteNum
- end
-